package com.jhs.kjs.dto;

import java.util.Date;

import com.jhs.kjs.dto.util.abstractDTO;
import com.jhs.kjs.model.daumMap.frame.ILatLng;

public class CarDTO extends abstractDTO  implements ILatLng{

	private Long CarCode;
	private Long CustomerCode=0L;
	private Long DeptCode;
	private Long CarGroupCode;
	private Long CarDriverCode;
	private Long CarTypeCode;
	private String CarRegiNumber;
	private Double Lat;
	private Double Lng;
	private String Address;
	private String AddressComponent1;
	private String AddressComponent2;
	private String AddressComponent3;
	private Long CheckAreaCode;
	private Date DetectTime;
	private String StartUp;
	private String Run;
	private String carName;
	private Long Speed;
	private Long DayDistance;
	private Long TotalDistance;
	private Long Temperature;
	private Long Humidity;
	private Long Voltage;
	private int Direction;
	private int DTGState;
	private Long BaseTotalDistance;
	private String memo;
	private Long RegularationSpeed;
	private Double LowVoltage;
	private Long BaeTemperature1;
	private Long BaeTemperature2;
	private Long CarType;
	private String SMSNotiPhoneNum;
	private String SMSNoti1;
	private String SMSNoti2;
	private String SMSNoti3;
	private String carTypeName;
	private String garage;	//차고지
	private Long RegulationSpeed;	//규정속도
	private Integer GPSAllowTimeFr;	//위치정보 전송 시작시간(항상 전송일때 -1)
	private Integer GPSAllowTimeTo;	//위치정보 전송 시작종료(항상 전송일때 -1)
	private String baggage;
	private Long AccumulatedDayDistance;
	private Long AccumulatedTotalDistance;
	private Date RegiDate;
	private Date OpeningDate;
	private Date ClosingDate;
	private Long ServiceID;
	private int Status;

	private Long dayRunningTime;	// 금일 운행 시간
	public Long getCarCode() {
		return CarCode;
	}

	public void setCarCode(Long carCode) {
		CarCode = carCode;
	}

	public Long getCustomerCode() {
		return CustomerCode==null?0L:CustomerCode;
	}

	public void setCustomerCode(Long customerCode) {
		CustomerCode = customerCode;
	}

	public Long getDeptCode() {
		return DeptCode;
	}

	public void setDeptCode(Long deptCode) {
		DeptCode = deptCode;
	}

	public Long getCarGroupCode() {
		return CarGroupCode;
	}

	public void setCarGroupCode(String carGroupCode) {
		this.CarGroupCode = null;
	}
	
	public void setCarGroupCode(Long carGroupCode) {
		CarGroupCode = carGroupCode;
	}

	public Long getCarDriverCode() {
		return CarDriverCode;
	}

	public void setCarDriverCode(Long carDriverCode) {
		CarDriverCode = carDriverCode;
	}

	public Long getCarTypeCode() {
		return CarTypeCode;
	}

	public void setCarTypeCode(Long carTypeCode) {
		CarTypeCode = carTypeCode;
	}

	public String getCarRegiNumber() {
		return CarRegiNumber;
	}

	public void setCarRegiNumber(String carRegiNumber) {
		CarRegiNumber = carRegiNumber;
	}

	public Double getLat() {
		if(Lat == null) return 0d;
		while(Lat>100){
			Lat/=10;
		}
		return Lat;
	}

	public void setLat(Double lat) {
		Lat = lat;
	}

	public Double getLng() {
		if(Lng == null) return 0d;
		while(Lng>1000){
			Lng/=10;
		}
		return Lng;
	}

	public void setLng(Double lng) {
		Lng = lng;
	}

	public String getAddress() {
		return Address;
	}

	public void setAddress(String address) {
		Address = address;
	}

	public String getAddressComponent1() {
		return AddressComponent1;
	}

	public void setAddressComponent1(String addressComponent1) {
		AddressComponent1 = addressComponent1;
	}

	public String getAddressComponent2() {
		return AddressComponent2;
	}

	public void setAddressComponent2(String addressComponent2) {
		AddressComponent2 = addressComponent2;
	}

	public String getAddressComponent3() {
		return AddressComponent3;
	}

	public void setAddressComponent3(String addressComponent3) {
		AddressComponent3 = addressComponent3;
	}

	public Long getCheckAreaCode() {
		return CheckAreaCode;
	}

	public void setCheckAreaCode(Long checkAreaCode) {
		CheckAreaCode = checkAreaCode;
	}

	public Date getDetectTime() {
		return DetectTime;
	}

	public void setDetectTime(Date detectTime) {
		DetectTime = detectTime;
	}

	public String getStartUp() {
		return StartUp;
	}

	public void setStartUp(String startUp) {
		StartUp = startUp;
	}

	public String getRun() {
		return Run;
	}

	public void setRun(String run) {
		Run = run;
	}

	public Long getSpeed() {
		return Speed;
	}

	public void setSpeed(Long speed) {
		Speed = speed;
	}

	public Long getDayDistance() {
		return DayDistance;
	}

	public void setDayDistance(Long dayDistance) {
		DayDistance = dayDistance;
	}

	public Long getTotalDistance() {
		return TotalDistance;
	}

	public void setTotalDistance(Long totalDistance) {
		TotalDistance = totalDistance;
	}

	public Long getTemperature() {
		return Temperature;
	}

	public void setTemperature(Long temperature) {
		Temperature = temperature;
	}

	public Long getHumidity() {
		return Humidity;
	}

	public void setHumidity(Long humidity) {
		Humidity = humidity;
	}

	public Long getVoltage() {
		return Voltage;
	}

	public void setVoltage(Long voltage) {
		Voltage = voltage;
	}


	public int getDirection() {
		return Direction;
	}

	public void setDirection(int direction) {
		Direction = direction;
	}

	public int getDTGState() {
		return DTGState;
	}

	public void setDTGState(int dTGState) {
		DTGState = dTGState;
	}

	@Override
	public int getCardinal() {
		// TODO Auto-generated method stub
		return 0;
	}

	public String getCarName() {
		return carName;
	}

	public void setCarName(String carName) {
		this.carName = carName;
	}

	public Long getBaseTotalDistance() {
		return BaseTotalDistance==null?0:BaseTotalDistance/10;
	}

	public void setBaseTotalDistance(Long baseTotalDistance) {
		BaseTotalDistance = baseTotalDistance;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public Long getRegularationSpeed() {
		return RegularationSpeed;
	}

	public void setRegularationSpeed(Long regularationSpeed) {
		RegularationSpeed = regularationSpeed;
	}

	public Double getLowVoltage() {
		return LowVoltage;
	}

	public void setLowVoltage(Double lowVoltage) {
		LowVoltage = lowVoltage;
	}

	public Long getBaeTemperature1() {
		return BaeTemperature1;
	}

	public void setBaeTemperature1(Long baeTemperature1) {
		BaeTemperature1 = baeTemperature1;
	}

	public Long getBaeTemperature2() {
		return BaeTemperature2;
	}

	public void setBaeTemperature2(Long baeTemperature2) {
		BaeTemperature2 = baeTemperature2;
	}

	public Long getCarType() {
		return CarType;
	}

	public void setCarType(Long carType) {
		CarType = carType;
	}

	public String getSMSNotiPhoneNum() {
		return SMSNotiPhoneNum;
	}

	public void setSMSNotiPhoneNum(String sMSNotiPhoneNum) {
		SMSNotiPhoneNum = sMSNotiPhoneNum;
	}

	public String getSMSNoti1() {
		return SMSNoti1;
	}

	public void setSMSNoti1(String sMSNoti1) {
		SMSNoti1 = sMSNoti1;
	}

	public String getSMSNoti2() {
		return SMSNoti2;
	}

	public void setSMSNoti2(String sMSNoti2) {
		SMSNoti2 = sMSNoti2;
	}

	public String getSMSNoti3() {
		return SMSNoti3;
	}

	public void setSMSNoti3(String sMSNoti3) {
		SMSNoti3 = sMSNoti3;
	}

	public String getCarTypeName() {
		return carTypeName;
	}

	public void setCarTypeName(String carTypeName) {
		this.carTypeName = carTypeName;
	}

	public String getGarage() {
		return garage;
	}

	public void setGarage(String garage) {
		this.garage = garage;
	}

	public Long getRegulationSpeed() {
		return RegulationSpeed;
	}

	public void setRegulationSpeed(Long regulationSpeed) {
		RegulationSpeed = regulationSpeed;
	}

	public Integer getGPSAllowTimeFr() {
		return GPSAllowTimeFr;
	}

	public void setGPSAllowTimeFr(Integer gPSAllowTimeFr) {
		GPSAllowTimeFr = gPSAllowTimeFr;
	}

	public Integer getGPSAllowTimeTo() {
		return GPSAllowTimeTo;
	}

	public void setGPSAllowTimeTo(Integer gPSAllowTimeTo) {
		GPSAllowTimeTo = gPSAllowTimeTo;
	}

	@Override
	public Long getEpochtime() {
		// TODO Auto-generated method stub
		return null;
	}

	public String getBaggage() {
		return baggage;
	}

	public void setBaggage(String baggage) {
		this.baggage = baggage;
	}

	public Long getAccumulatedDayDistance() {
		return AccumulatedDayDistance;
	}

	public void setAccumulatedDayDistance(Long accumulatedDayDistance) {
		AccumulatedDayDistance = accumulatedDayDistance;
	}

	public Long getAccumulatedTotalDistance() {
		return AccumulatedTotalDistance;
	}

	public void setAccumulatedTotalDistance(Long accumulatedTotalDistance) {
		AccumulatedTotalDistance = accumulatedTotalDistance;
	}

	public Date getRegiDate() {
		return RegiDate;
	}

	public void setRegiDate(Date regiDate) {
		RegiDate = regiDate;
	}

	public Date getOpeningDate() {
		return OpeningDate;
	}

	public void setOpeningDate(Date openingDate) {
		OpeningDate = openingDate;
	}

	public Date getClosingDate() {
		return ClosingDate;
	}

	public void setClosingDate(Date closingDate) {
		ClosingDate = closingDate;
	}

	public Long getServiceID() {
		return ServiceID;
	}

	public void setServiceID(Long serviceID) {
		ServiceID = serviceID;
	}

	public int getStatus() {
		return Status;
	}

	public void setStatus(int status) {
		Status = status;
	}

	public Long getDayRunningTime() {
		return dayRunningTime;
	}

	public void setDayRunningTime(Long dayRunningTime) {
		this.dayRunningTime = dayRunningTime;
	}

}
